<template>
    <van-card class="orderCard">
        <template #num>
          本单金额：<van-tag type="primary">{{'￥'+orderInfo.totalMoney}}</van-tag>
        </template>
        <template #desc>
            <h3>下单位置：{{orderInfo.deskName}}</h3>
            <p>下单时间：{{orderInfo.orderTime}}</p>
        </template>
        <template #tags>
            付款状态：
            <van-tag v-if="orderInfo.pay" type="success">已付款</van-tag>
            <van-tag v-else type="danger">未付款</van-tag>
        </template>
    </van-card>
</template>

<script>
    export default {
        name: "OrderHistoric",
        props:["orderInfo"]
    }
</script>

<style scoped>
    .orderCard{
        margin-top: 5px;
        margin-bottom: 5px;
    }
</style>
